<?php
include_once "lib/config.php";
include_once "header.php";
if(isset($_SESSION['msg_success']) && $_SESSION['msg_success']!="")
{
	$msg_success=$_SESSION['msg_success'];
	unset($_SESSION['msg_success']);
}

if(isset($_SESSION['msg_error']) && $_SESSION['msg_error']!="")
{
	$msg_error=$_SESSION['msg_error'];
	unset($_SESSION['msg_error']);
}
?>
        
		<div class="container_12">
           <!-- Account overview -->
            <div class="grid_5">
                <div class="module">
                        <h2><span>Account overview</span></h2>
                        
                        <div class="module-body" >
                        	<div style="float:left;width:30%;text-align:center;border:0px solid">
    							<?php
    							
    							$imagename=$unknown_image;
    							if(isset($user_details[0]['profile_photo']) && $user_details[0]['profile_photo']!=Null){
    								 if(file_exists($user_details[0]['profile_photo']))
    								 {
    									$imagename=	$user_details[0]['profile_photo'];
    								 }  
    								 else
    								 {
    									$imagename=$unknown_image;
    								 }
    							}
    								  
    							?>
    							<img src="<?php echo $imagename; ?>">
    							
    						</div>
                        	<div style="float:left;border:0px solid;width:65%;padding:5px;padding-left:15px;">
                        	<p>
                                <strong>Full Name: </strong><?php if($user_details[0]['full_name']!="")echo $user_details[0]['full_name'];else echo "--"; ?>
                            </p>
							<p>    
                                <strong>Employee Type: </strong><?php if($user_details[0]['user_type']!="")echo $user_details[0]['user_type'];else echo "--"; ?>
                            </p>
							<p>
								<strong>Email ID: </strong><?php if($user_details[0]['email_id']!="")echo $user_details[0]['email_id'];else echo "--"; ?>
							</p>
							<p> 	
                                <strong>Contact Number: </strong><?php if($user_details[0]['contact_number']!="")echo $user_details[0]['contact_number'];else echo "--"; ?>
                            </p>
							<p>     
                                <strong>Address: </strong><?php if($user_details[0]['address']!="")echo $user_details[0]['address'];else echo "--"; ?>
                             </p>
							<p>
                                Need to view your profile info?
                               
                                <a href="profile.php">click here</a><br /><br>
                            </p>    
                           </div>
							
                        </div>
                </div>
                <div style="clear:both;"></div>
            </div> <!-- End .grid_5 -->
            
            <div style="clear:both;"></div>
            <br><br>
            <div class="grid_6">
                <div class="module">
                     <h2><span>Staff Comments Approval Notifications</span></h2>
                      <?php
                      $msg_arr=array();
					  ?>  
                     <div class="module-body">
                        <p class="notification n-<?php if(count($msg_arr)>0)echo "information"; else echo "attention"; ?>"><strong>You have total <?php echo count($msg_arr); ?> unread messages</strong></p>
                        <div style="overflow-y:scroll;height:130px;">
                         <table >
                         	
						 </table>
						 </div>
                     </div> <!-- End .module-body -->
                </div> <!-- End .module -->
            </div>
            <div class="grid_6">
                <div class="module">
                     <h2><span>Staffs Tech Path Approval Notifications</span></h2>
                      <?php
                      $techpathapprovalinfo=array();
					  
					  ?>  
                     <div class="module-body">
                        <p class="notification n-<?php if(count($techpathapprovalinfo)>0)echo "information"; else echo "attention"; ?>"><strong>You have total <?php echo count($techpathapprovalinfo); ?> leaves notifications</strong></p>
                        <div style="overflow-y:scroll;height:130px;">
                         <table>
                         	
						 </table>
                         </div>
                     </div> <!-- End .module-body -->
                </div> <!-- End .module -->
            </div>
            <div style="clear:both;"></div>
            
            
            
        </div> <!-- End .container_12 -->
        <div style="clear:both;"></div>
		<form name="mainform" method="post">
    		
		</form>
<?php include_once("footer.php"); ?>           
<?php
if(isset($msg_success) && $msg_success!="")
{
	$notymessage=$msg_success;
	$msgtype="success";
}
else if(isset($msg_error) && $msg_error!="")
{
	$msgtype="error";
	$notymessage=$msg_error;
}
else
{
	$msgtype="";
}
if($msgtype!="")
{
?>        
<script language="javascript">
	$(document).ready(function(){
		
		var options = $.parseJSON('{"text":"<?php echo $notymessage; ?>","layout":"top","type":"<?php echo $msgtype; ?>"}');
		noty(options);
		
	});
</script>  
<?php
}
?>     